// 检查是否今天时间戳
export const isToday = async (timestamp: number) => {
  const inputDate = new Date(parseInt(`${timestamp}`)); // 秒级转毫秒
  const today = new Date();
  
  return (
    inputDate.getFullYear() === today.getFullYear() &&
    inputDate.getMonth() === today.getMonth() &&
    inputDate.getDate() === today.getDate()
  );
}
